﻿using System;
using System.Collections.Generic;
using System.Text;
using designmodule.constructionmodule.AbstractFactory.NormalAbstractFactory;

namespace designmodule.constructionmodule.AbstractFactory.simpleFactory
{
    class Program
    {
        void main()
        {
            var user = new User();
            var department = new Department();
            var dataaccess = new DataAccess();

            IUser iuser = dataaccess.CreateUser();
            iuser.Insert(user);
            iuser.GetUser(1);

            IDepartment iDepartment = dataaccess.CreateDepartment();
            iDepartment.Insert(department);
            iDepartment.GetDepartment(1);
        }
    }
}
